﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

public partial class BankaYonlendirme : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!Page.IsPostBack)
        {
            if (Request.UrlReferrer != null)
            {
                string prevPage = Request.UrlReferrer.ToString();
                if (!(prevPage.ToLower().Contains("siparisi-tamamla")))
                    Response.Redirect(Page.GetRouteUrl("AnaSayfa", new { }));
            }
            else
                Response.Redirect(Page.GetRouteUrl("AnaSayfa", new { }));

            if (Sessions.SiparisFiyati == null)
                Response.Redirect(Page.GetRouteUrl("AnaSayfa", new { }));

        }
    }
}